﻿namespace ContribSample.jQueryUI
{
	using Script.Contrib.jQueryUI;
	using jQueryApi;
	using System.Collections;

	public class DroppableSamples
	{
		public static void DefaultFunctionality()
		{
			jQueryUI.Select("#draggable").Draggable();
			jQueryUIObject droppable = jQueryUI.Select("#droppable").Droppable();
			
			droppable.Bind("drop", delegate(jQueryEvent e, Dictionary ui)
			{
				jQuery.This.AddClass("ui-state-highlight").Find("p").Html("Dropped!");
			});
		}
	}
}
